﻿#region Imports

using System;
using System.Collections.Generic;
using System.Text;

#endregion

namespace d3PrtDgn.Common.IService
{
	/// <summary>
	/// Interface of text utility class
	/// </summary>
	public interface ITextUtil
	{
		/// <summary>
		/// Gets MD5 hash as hexadecimal string
		/// </summary>
		/// <param name="input">Input string to hash</param>
		/// <returns>32 charaters long hexadecimal string</returns>
		string GetMd5Hash(string input);

		/// <summary>
		/// Replaces all special characters, white spaces 
		/// and removes accents from string
		/// </summary>
		/// <param name="input">Input string</param>
		/// <returns>URL friendly string</returns>
		string GetUrlFriendlyName(string input);
	}
}
